package com.example.expandablelistview.thread;

import android.os.Handler;
import android.os.Message;

public class BackThreadObtain extends Thread {
	private int mBackValue;
	private Handler mHandler;
	
	public BackThreadObtain(Handler mHandler) {
		this.mHandler = mHandler;
	}
	
	@Override
	public void run() {
		super.run();
		while(true){
			mBackValue++;
			Message msg = Message.obtain(mHandler, 0, mBackValue, 0);
			mHandler.sendMessage(msg);
			try{Thread.sleep(1000);}catch(InterruptedException e){}
		}
	}
}
